<?php
/**
 * Model representing objects that can be enabled or disabled.
 * 
 * @author Damian Sromek <damianpaq@gmail.com>
 * @version 0.1
 */
abstract class Plus_Model_Model_EnableDisable_Abstract extends Plus_Model_Model_Abstract
{	
	/**
	 * Is service version available for users?
	 * @var boolean
	 */
	protected $_isEnabled;
	
	/**
	 * Sets if object should be enabled for users etc.
	 * @param $isEnabled boolean true if object should be enabled;
	 * false in the oposite case
	 * @return $this
	 */
	public function setIsEnabled($isEnabled)
	{
		$this->_isEnabled = (bool) $isEnabled;
		return $this;
	}
	
	/**
	 * 
	 * @return boolean is object enabled?
	 */
	public function getIsEnabled()
	{
		return $this->_isEnabled;
	}
}